package com.jkoss.wine.warehouse.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import cn.afterturn.easypoi.excel.annotation.Excel;

/**
 * 出库单
 * 
 * @Author Jason
 * @Version 1.0, 2018-11-30
 * @See
 * @Since com.jkoss.wine.warehouse.entity
 * @Description: TODO
 */
@TableName("ware_out_order")
public class WareOutOrder extends Model<WareOutOrder> {

	private static final long serialVersionUID = 1L;

	@TableId("id")
	private String id;
	/**
	 * 订单编号
	 */
	@Excel(name = "订单编号", orderNum = "1", width = 30)
	@TableField("onum")
	private String onum;
	/**
	 * 订单金额
	 */
	@Excel(name = "订单金额", orderNum = "2", width = 30)
	@TableField("opcs")
	private Integer opcs;
	/**
	 * 订单类型：1-销售出库、2-其他出库、3-盈亏出库
	 */
	@Excel(name = "订单类型", orderNum = "3", replace = { "销售出库_1", "其他出库_2", "盈亏出库_3" }, width = 30)
	@TableField("type")
	private Integer type;
	/**
	 * 制单人
	 */
	@TableField("sgps")
	private String sgps;
	/**
	 * 订单时间
	 */
	@Excel(name = "订单时间", orderNum = "4", format = "yyyy-MM-dd", width = 30)
	@TableField("odtm")
	private Date odtm;
	/**
	 * 客户
	 */
	@TableField("csmr")
	private String csmr;
	/**
	 * 配送方式：1-自配、2-自提、3-快递、4-物流
	 */
	@Excel(name = "配送方式", orderNum = "5", replace = { "自配_1", "自提_2", "快递_3", "物流_4" }, width = 30)
	@TableField("dtbt")
	private String dtbt;
	/**
	 * 运费：1-公司出、2-代付、3-提付、4-到付
	 */
	@Excel(name = "运费", orderNum = "6", replace = { "公司出_1", "代付_2", "提付_3", "到付_4" }, width = 30)
	@TableField("fare")
	private Integer fare;
	/**
	 * 备注
	 */
	@Excel(name = "备注", orderNum = "10", width = 30)
	@TableField("remk")
	private String remk;
	/**
	 * 添加时间
	 */
	@TableField("add_time")
	private Date addTime;
	/**
	 * 操作人
	 */
	@TableField("operator")
	private String operator;
	/**
	 * 是否删除 0否1是
	 */
	@TableField("del")
	private Integer del;

	/**
	 * 客户名称
	 */
	@TableField("name")
	private String name;
	/**
	 * 联系方式
	 */
	@TableField("phone")
	private String phone;
	/**
	 * 收货地址
	 */
	@TableField("addr")
	private String addr;
	/**
	 * 物流公司
	 */
	@TableField("logistics")
	private String logistics;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getOnum() {
		return onum;
	}

	public void setOnum(String onum) {
		this.onum = onum;
	}

	public Integer getOpcs() {
		return opcs;
	}

	public void setOpcs(Integer opcs) {
		this.opcs = opcs;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getSgps() {
		return sgps;
	}

	public void setSgps(String sgps) {
		this.sgps = sgps;
	}

	public Date getOdtm() {
		return odtm;
	}

	public void setOdtm(Date odtm) {
		this.odtm = odtm;
	}

	public String getCsmr() {
		return csmr;
	}

	public void setCsmr(String csmr) {
		this.csmr = csmr;
	}

	public String getDtbt() {
		return dtbt;
	}

	public void setDtbt(String dtbt) {
		this.dtbt = dtbt;
	}

	public Integer getFare() {
		return fare;
	}

	public void setFare(Integer fare) {
		this.fare = fare;
	}

	public String getRemk() {
		return remk;
	}

	public void setRemk(String remk) {
		this.remk = remk;
	}

	public Date getAddTime() {
		return addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public Integer getDel() {
		return del;
	}

	public void setDel(Integer del) {
		this.del = del;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getAddr() {
		return addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	public String getLogistics() {
		return logistics;
	}

	public void setLogistics(String logistics) {
		this.logistics = logistics;
	}

	@Override
	public String toString() {
		return "WareOutOrder{" + ", id=" + id + ", onum=" + onum + ", opcs=" + opcs + ", type=" + type + ", sgps=" + sgps + ", odtm=" + odtm + ", csmr=" + csmr + ", dtbt=" + dtbt + ", fare=" + fare + ", remk=" + remk + ", addTime=" + addTime + ", operator=" + operator + ", del=" + del + "}";
	}
}
